package com.itheima.a06extends;

public class ChineseDog extends Dog{
    //中华田园犬吃的是剩饭,父类Dog(吃狗粮)无法满足中华田园犬的需求,所以要重写

    @Override
    public void eat() {
        System.out.println("吃剩饭");
    }
}
